unsigned short data,rec;

void main()
{
Trisb.f5 =0;trisb.f4=1;trisb.f0=1;
Soft_Uart_Init(PORTB,4,5,4800, 0);

while(1)
{
   // if(!portb.f0)
   // {

do
  data = Soft_Uart_Read(&rec);
while (data<=0);



/* Now we can work with data: */
if (data) {
Soft_Uart_Write(data);

       delay_ms(500);
    }
}}